package cn.edu.seu.ssny.dao;

import cn.edu.seu.ssny.dao.support.IBaseDao;
import cn.edu.seu.ssny.entity.*;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public interface ILoginLogDao extends IBaseDao<LoginLog, Integer> {
    List<LoginLog> findByUser(User user);

    LoginLog findFirstByUserOrderByLoginTimeDesc(User user);
}
